<template>
  <el-table
    :data="reset"
    @selection-change="change"
    border
    style="width: 100%"
    :header-cell-style="{background:'#f4f4f4'}">
     <el-table-column
      type="selection"
      fixed
      align="center"
      width="55">
    </el-table-column>
    <el-table-column
      prop="PlanId"
      width="50"
      align="center"
      label="id">
    </el-table-column>
    <el-table-column
      prop="MaintName"
      align="center"
      label="设备编码">
    </el-table-column>
    <el-table-column
      prop="DeviceName"
      align="center"
      label="设备名称">
    </el-table-column>
    <el-table-column
      prop="Name"
      :show-overflow-tooltip="true"
      label="保养规则">
    </el-table-column>
    <el-table-column
      prop="MaintTimeSpan"
      align="center"
      label="保养周期">
    </el-table-column>
    <el-table-column
      prop="address"
      width="110"
      label="上次保养时间">
    </el-table-column>
    <el-table-column
      prop="address"
      width="80"
      align="center"
      label="保养人">
    </el-table-column>
    <el-table-column
      prop="address"
      width="110"
      label="预警触发时间">
    </el-table-column>
    <el-table-column
      prop="IsEnableFormat"
      width="60"
      align="center"
      label="状态">
    </el-table-column>
    <el-table-column
      prop="CreateBy"
      align="center"
      label="创建人">
    </el-table-column>
    <el-table-column
      prop="CreateTime"
      :show-overflow-tooltip="true"
      label="创建时间">
    </el-table-column>
    <el-table-column
      prop="LastModifyBy"
      align="center"
      label="修改人">
    </el-table-column>
    <el-table-column
      prop="LastModifyTime"
      :show-overflow-tooltip="true"
      label="修改时间">
    </el-table-column>
  </el-table>
</template>

<script>
  export default {
    props:{
      reset:{
        type:Array,
        required: true
      }
    },
    data() {
      return {
        
      }
    },
    methods:{
      change(val){
        this.$emit('checkData',val)
      }
    }
  }
</script>